public class Student {
    private String name;
    private int age;
    private static String classRoom = "四年级六班";

    //实例代码块
    {
        System.out.println("实例代码块执行了1....");
    }

    {
        name = "feifei";
        System.out.println("实例代码块执行了2....");
    }

    //静态代码块
    static {
        System.out.println("静态代码块执行了1....");
    }

    static {
        classRoom = "大学一年级";
        System.out.println("静态代码块执行了2....");
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println("构造Student(String name, int age)方法执行了....");
    }

    public static String getClassRoom() {

        return classRoom;
    }
}
